package com.xbongbong.admin.domain.dao;

import com.xbongbong.admin.domain.entity.LowCodeRetaionEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface LowCodeRetaionDao {

    Integer insert(LowCodeRetaionEntity entity);

    void insertBatch(List<LowCodeRetaionEntity> list);

    LowCodeRetaionEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(LowCodeRetaionEntity entity);

    List<LowCodeRetaionEntity> findEntities(@Param("param") Map<String, Object> param);

    Integer getEntitiesCount(@Param("param") Map<String, Object> param);
}